/*
 * @Author: 杨超
 * @Date: 2021-06-11 10:13:52
 * @LastEditTime: 2021-10-11 11:20:59
 * @LastEditors: 杨超
 * @Description:
 */
import { BudgetingOldApi } from '@/api'
import CommonModel from './common'

class BudgetingOldModel extends CommonModel {
    constructor() {
        super()
        this.api = new BudgetingOldApi()
    }

    // 编辑页详情
    getEditDetail(data) {
        return this.api.getEditDetail(data)
    }

    // 提交
    submit(number) {
        const data = { number }
        return this.api.submit(data)
    }

    // 撤回
    recall(number) {
        const data = { number }
        return this.api.recall(data)
    }

    // 获取当前公路已创建周期列表，用于限制年度和季度选择
    getPeriodList(data) {
        return this.api.getPeriodList(data)
    }

    // 获取有预算的公路和对应年份
    getBudgetListByRoad(data) {
        return this.api.getBudgetListByRoad(data)
    }

    // 获取预算内容列表，用于季度和月度新建展示
    getbudgetContent(data) {
        return this.api.getbudgetContent(data)
    }
}

export default BudgetingOldModel
